package com.yjd.comm.base.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import com.yjd.comm.util.ServletUtil;

/**
 * session处理拦截器*
 * 
 * @author ready
 * 
 */
public class SessionInterceptor extends HandlerInterceptorAdapter {

	@SuppressWarnings("unused")
	private static Logger logger = Logger.getLogger(SessionInterceptor.class);

	@Override
	public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
		super.postHandle(request, response, handler, modelAndView);
		ServletUtil.putRequestSession(request, response);
	}

}
